package com.example.check.service;

import com.example.check.entity.PermissionEntity;

import java.util.ArrayList;

/**
 * Created by Tony Yao on 2017/7/17.
 */
public interface PermissionService {
    public ArrayList<PermissionEntity> searchAllPermission()throws Exception;
    public PermissionEntity searchPermissionByID(int id)throws Exception;
    public ArrayList<PermissionEntity> searchPermissionByField(String field,String code) throws Exception;
    public ArrayList<PermissionEntity> searchPermissionLikeByField(String field,String code) throws Exception;
    public void deletePermissionById(int id) throws Exception;
    public void insertPermission(PermissionEntity role)throws Exception;
    public void editPermission(PermissionEntity role)throws Exception;
}
